Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[new IR] line numbers #26782

Merged
merged 2 commits into from
Apr 11, 2018
Merged

[new IR] line numbers #26782

merged 2 commits into from
Apr 11, 2018

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Apr 11, 2018

No description provided.

vtjnash added 2 commits April 11, 2018 13:03
However, there seems to be a bug in the new-IR inliner,
where it is failing to correctly unique the linetable contents,
which wastes memory and may lead to mistakes here.
@vtjnash vtjnash requested a review from Keno April 11, 2018 17:12
jl_array_t *edges = (jl_array_t*)jl_fieldref_noalloc(v, 0);
jl_array_t *values = (jl_array_t*)jl_fieldref_noalloc(v, 1);
size_t l = jl_array_len(edges);
if (l <= 255 && jl_array_len(values) == l) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should just have a special tag for all short 1-d arrays.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uh, sure. Not really relevant for this PR though, since this serializer mode is prevented from handle arrays (they aren't an ast node type)

Copy link
Member

@Keno Keno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from the IR/CodeGen side

@vtjnash vtjnash merged commit b010e70 into master Apr 11, 2018
@vtjnash vtjnash deleted the jn/newir-loc branch April 11, 2018 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants